package com.ruiysoft.service.order.impl;

import com.ruiysoft.entity.order.OrderMain;
import com.ruiysoft.pub.core.Result;
import com.ruiysoft.pub.core.ResultGenerator;
import com.ruiysoft.service.order.IOrderInnerService;
import com.ruiysoft.service.order.anno.OrderOperate;
import com.ruiysoft.service.order.consts.OperatorIdEnum;
import com.ruiysoft.service.order.consts.OrderOperateTypeEnum;
import com.ruiysoft.service.order.facade.OrderInnerFacade;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Date : 2018/11/24
 *
 * @author WenJialu
 */
@Service
public class OrderInnerServiceImpl implements IOrderInnerService {

	@Resource
	OrderInnerFacade orderInnerFacade;

	@Override
	@OrderOperate(orderNo = "#orderNo", operateType = OrderOperateTypeEnum.SYSTEM_SIGN, operatorId = OperatorIdEnum.SYSTEM_AUTO_OPERATE)
	public Result<OrderMain> sign4Order(String orderNo) {
		return orderInnerFacade.sign4Order(orderNo);
	}
}
